package com.windmt.controller;

import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author: yibo
 **/
@RequestMapping("/hello")
@RestController
public class HelloController {


    @GetMapping("")
    public String hello(@RequestParam String name) {
        return "Hello, " + name + "!";
    }

    @PostMapping("/post")
    public String post(@RequestBody Map<String, String> body) {
        return body.toString();
    }
}
